package cn.bdqn.mapper;

import cn.bdqn.domain.Delivery;
import cn.bdqn.domain.SendFreight;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 派活单接口
 * @author dkj
 */
public interface DeliveryMapper {


    /**
     * 根据id查询
     * @param id
     * @return
     */
    Delivery selectByPrimaryKey(Integer id);


    /**
     * 新增
     * @param delivery
     * @return
     */
    public void inertDelivery(Delivery delivery);


    /**
     * 查询
     * @param sendFreightIds
     * @return
     */
    public List<Delivery> selectBySendFreightId(@Param("sendFreightIds") List<SendFreight> sendFreightIds);


    /**
     * 修改
     * @param delivery
     */
    public void updateDelivery(Delivery delivery);


}
